package com.erlang.springmvc.exception;

/**
 * @Description：自定义异常类
 */
public class ProjectException extends Exception {

    //错误信息
    private String message;

    //错误编码
    private String code;

    public ProjectException() {
    }

    public ProjectException(String message, String code) {
        this.message = message;
        this.code =code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}